Optimal. Leaf size=49 \[ -\frac {2 (b c-a d) \sqrt {x}}{d^2}+\frac {b x}{d}+\frac {2 c (b c-a d) \log \left (c+d \sqrt {x}\right )}{d^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {383, 78}
\begin {gather*} \frac {2 c (b c-a d) \log \left (c+d \sqrt {x}\right )}{d^3}-\frac {2 \sqrt {x} (b c-a d)}{d^2}+\frac {b x}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 383
Rubi steps
\begin {align*} \int \frac {a+b \sqrt {x}}{c+d \sqrt {x}} \, dx &=2 \text {Subst}\left (\int \frac {x (a+b x)}{c+d x} \, dx,x,\sqrt {x}\right )\\ &=2 \text {Subst}\left (\int \left (\frac {-b c+a d}{d^2}+\frac {b x}{d}+\frac {c (b c-a d)}{d^2 (c+d x)}\right ) \, dx,x,\sqrt {x}\right )\\ &=-\frac {2 (b c-a d) \sqrt {x}}{d^2}+\frac {b x}{d}+\frac {2 c (b c-a d) \log \left (c+d \sqrt {x}\right )}{d^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 51, normalized size = 1.04 \begin {gather*} \frac {\left (-2 b c+2 a d+b d \sqrt {x}\right ) \sqrt {x}}{d^2}+\frac {2 c (b c-a d) \log \left (c+d \sqrt {x}\right )}{d^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.25, size = 48, normalized size = 0.98
method | result | size |
derivativedivides | \(\frac {x b d +2 a d \sqrt {x}-2 b c \sqrt {x}}{d^{2}}-\frac {2 c \left (a d -b c \right ) \ln \left (c +d \sqrt {x}\right )}{d^{3}}\) | \(48\) |
default | \(\frac {x b d +2 a d \sqrt {x}-2 b c \sqrt {x}}{d^{2}}-\frac {2 c \left (a d -b c \right ) \ln \left (c +d \sqrt {x}\right )}{d^{3}}\) | \(48\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 47, normalized size = 0.96 \begin {gather*} \frac {b d x - 2 \, {\left (b c - a d\right )} \sqrt {x}}{d^{2}} + \frac {2 \, {\left (b c^{2} - a c d\right )} \log \left (d \sqrt {x} + c\right )}{d^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.54, size = 48, normalized size = 0.98 \begin {gather*} \frac {b d^{2} x + 2 \, {\left (b c^{2} - a c d\right )} \log \left (d \sqrt {x} + c\right ) - 2 \, {\left (b c d - a d^{2}\right )} \sqrt {x}}{d^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.27, size = 82, normalized size = 1.67 \begin {gather*} \begin {cases} - \frac {2 a c \log {\left (\frac {c}{d} + \sqrt {x} \right )}}{d^{2}} + \frac {2 a \sqrt {x}}{d} + \frac {2 b c^{2} \log {\left (\frac {c}{d} + \sqrt {x} \right )}}{d^{3}} - \frac {2 b c \sqrt {x}}{d^{2}} + \frac {b x}{d} & \text {for}\: d \neq 0 \\\frac {a x + \frac {2 b x^{\frac {3}{2}}}{3}}{c} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.17, size = 49, normalized size = 1.00 \begin {gather*} \frac {b d x - 2 \, b c \sqrt {x} + 2 \, a d \sqrt {x}}{d^{2}} + \frac {2 \, {\left (b c^{2} - a c d\right )} \log \left ({\left | d \sqrt {x} + c \right |}\right )}{d^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.07, size = 49, normalized size = 1.00 \begin {gather*} \sqrt {x}\,\left (\frac {2\,a}{d}-\frac {2\,b\,c}{d^2}\right )+\frac {\ln \left (c+d\,\sqrt {x}\right )\,\left (2\,b\,c^2-2\,a\,c\,d\right )}{d^3}+\frac {b\,x}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________